package com.cyq.blog.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cyq.blog.entity.Blog;
import com.cyq.blog.mapper.BlogMapper;
import com.cyq.blog.service.BlogService;
import org.springframework.stereotype.Service;

/**
 * BlogServiceImpl class
 *
 * @author chenyeqing
 * @date 2021/5/13
 */
@Service
public class BlogServiceImpl extends ServiceImpl<BlogMapper, Blog> implements BlogService {
    /**
     * 自定义查询SQL
     * @param wrapper
     * @return
     */
    @Override
    public int countBlog(Wrapper wrapper) {
        return baseMapper.countBlog(wrapper);
    }
}
